package com.example.administrator.pandanotes;

import org.litepal.crud.DataSupport;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * Created by 于博 on 2018-07-11.
 * BookClass(书籍分类)类，具有以下属性和对应的get、set方法
 * 分类名
 * 图片id
 */
public class BookClass extends DataSupport implements Serializable { //序列化
    private String class_name;//分类名
    private int book_class_imageId;//图片id

    private List<Books> booksList = new ArrayList<Books>();//和书1对多

    public BookClass(String class_name,int ImageId)
    {
        this.class_name=class_name;
        this.book_class_imageId=ImageId;
    }
    public String getClass_name() {
        return class_name;
    }

    public int getBook_class_imageId() {
        return book_class_imageId;
    }


    public List<Books> getBooksList() {
        return booksList;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public void setBook_class_imageId(int book_class_imageId) {
        this.book_class_imageId = book_class_imageId;
    }

    public void setBooksList(List<Books> booksList) {
        this.booksList = booksList;
    }
}
